from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By

# 引入color
from selenium.webdriver.support.color import Color

# https://www.selenium.dev/documentation/webdriver/support_features/colors/
wd = webdriver.Chrome(service=Service(f".\chromedriver_win136.exe"))
wd.get("https://www.gench.edu.cn/")
menu_btn = wd.find_element(By.CSS_SELECTOR, ".more_text")
color1 = Color.from_string("rgba(189, 26, 33,1)")
menu_btn_color = Color.from_string(menu_btn.value_of_css_property("color"))
assert menu_btn_color == color1
print(color1 == menu_btn_color)
